/*
 * $Id$
 */

package corejs.stmt;

import corejs.expr.Expression;
import corejs.rt.ActivationRecord;

import corejs.util.XmlPrinter;

/**
 *
 * @author pengyu
 */
public class Return extends Statement {

   private Expression _expr;

   public Return(final Expression e) {
      _expr = e;
   }

   @Override
   public void execute(ActivationRecord scope) {
      throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
   }

   @Override
   public void print(XmlPrinter printer) {
      throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
   }
   

   @Override
   public void accept(final StatementVisitor visitor) {
      visitor.visitReturn(_expr);
   }
}
